package org.dromara.system.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.dromara.system.domain.vo.*;

import java.util.List;
import java.util.Map;

@Mapper
public interface CommonMapper extends BaseMapper<CommonVo> {
    @DS("#datasource")
    int getUserCount(String datasource);
    @DS("#datasource")
    int getXqCount(String datasource);
    @DS("#datasource")
    int getBuildingCount(String datasource);
    @DS("#datasource")
    int getUnitCount(String datasource);
    @DS("#datasource")
    List<CommonVo> getCountGroupByType(String datasource);
    @DS("#datasource")
    List<ZhiYuanJiFenVo> getZhiYuanJiFen(String datasource);
    @DS("#datasource")
    List<FeedbackVo> getFeedbackCountGroupByMonth(String datasource);
    @DS("#datasource")
    int getRegisterUserCount(String datasource);
    @DS("#datasource")
    int getRegisterZyzCount(String datasource);
    @DS("#datasource")
    int getActivityZyzCount(String datasource);
    @DS("#datasource")
    List<VoteVo> getVoteTotalGroupByMonth(String datasource);
    @DS("#datasource")
    List<VoteVo> getVotePersonTotalGroupByMonth(String datasource);
    @DS("#datasource")
    int getIdCardInfoCount(String datasource);
    @DS("#datasource")
    List<ZhiYuanStatisticVo> getZhiyuanStatisticByDataSource(String datasource);
    @DS("#datasource")
    List<ZhiYuanStatisticVo> getZhiyuanPersonStatisticByDataSource(String datasource);
    @DS("#datasource")
    int getVoteCyrNum(String datasource);
    @DS("#datasource")
    int getVoteRecruitNum(String datasource);
    @DS("#datasource")
    List<FeedbackVo> getJiFenDuiHuanByCommunityId(String datasource);
    @DS("#datasource")
    List<FeedbackVo> getJiFenDuiHuanSumByCommunityId(String datasource);
    @DS("#datasource")
    int selectTotalFeedback(String name);
    @DS("#datasource")
    int selectYclFeedback(String name);
}
